package cn.wolfcode.trip.base.mapper;


import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObj;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyCommentMapper {
    int deleteByPrimaryKey(Long id);

    void insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> selectAll();

    int updateByPrimaryKey(StrategyComment record);

    List<StrategyComment> selectForList(QueryObject queryObject);

    List<StrategyComment> selectByState(Integer state);

    List<StrategyComment> getHeadline(StrategyCommentQueryObj qo);

    StrategyComment getStrategyCommentDetailsById(@Param("strategyCommentId") Long strategyCommentId);

    List<StrategyComment> getStrategyCommentByStrategyId(StrategyCommentQueryObj qo);
    List<StrategyComment> selectByUserId(StrategyCommentQueryObj qo);

    void updateLikeNum(@Param("id") Long relationId);

    void updateShowLikeNum(Long relationId);
}